From d890f6d28f49906e1224ac70f45c322a2b2cf5f4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 5 Nov 2025 12:40:18 +0100 Subject: [PATCH] messageList: Use Clutter cursors Set the hand cursor on URLs through ClutterActor API, instead of globally. Part-of: --- js/ui/messageList.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 509d2e84f..d9b30cf48 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -5,7 +5,6 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Graphene from 'gi://Graphene'; -import Meta from 'gi://Meta'; import Pango from 'gi://Pango'; import Shell from 'gi://Shell'; import St from 'gi://St'; @@ -88,10 +87,10 @@ class URLHighlighter extends St.Label { const urlId = this._findUrlAtPos(...event.get_coords()); if (urlId !== -1 && !this._cursorChanged) { - global.display.set_cursor(Meta.Cursor.POINTER); + this.set_cursor_type(Clutter.CursorType.POINTER); this._cursorChanged = true; } else if (urlId === -1) { - global.display.set_cursor(Meta.Cursor.DEFAULT); + this.set_cursor_type(Clutter.CursorType.DEFAULT); this._cursorChanged = false; } return Clutter.EVENT_PROPAGATE; @@ -103,7 +102,7 @@ class URLHighlighter extends St.Label { if (this._cursorChanged) { this._cursorChanged = false; - global.display.set_cursor(Meta.Cursor.DEFAULT); + this.set_cursor_type(Clutter.CursorType.DEFAULT); } return super.vfunc_leave_event(event); } -- 2.39.5